<!DOCTYPE html>
<html lang="en">

<head>
   <meta charset="utf-8">
   <link rel="stylesheet" href="/css/Store/store.css">
   <!-- 公共 cs 文件 -->
   <%- include('../commont/Link'); %>
   <title>商家食品更新</title>
</head>

<body>
   <!-- 公共的部分 -->
   <%- include('../commont/Header', {user: user}); %>

   <!-- 主体部分 -->
   <div id="mws-wrapper">
      <!-- 左侧导航 -->
      <%- include('../commont/Navigator', {curNav: curNav}); %>
      <div id="mws-container" class="clearfix">
         <!-- 内容区域 -->
         <div class="container">
            <div class="mws-panel grid_8">
               <div class="mws-panel-header">
                  <span><i class="icon-magic"></i>店铺更新</span>
               </div>
               <div class="mws-panel-body no-padding">
                  <form id="mws-wizard-form" class="mws-form wizard-form wizard-form-horizontal"
                     action="/userorder/doupdateorder" method="POST" enctype="multipart/form-data">
                     <fieldset id="step-1" class="mws-form-inline" data-wzd-id="wzd_1gh5jj34315ha1j6b500_0"
                        style="display: block;">
                        <legend class="wizard-label" style="display: none;">
                           <i class="icol-accept"></i>
                           Member Profile
                        </legend>
                        <div id="" class="mws-form-row">
                           <label class="mws-form-label">食品名称 <span class="required">*</span></label>
                           <div class="mws-form-item">
                              <input type="text" name="foodname" class="required large" value="<%= data.foodname %>">
                           </div>
                        </div>
                        <div class="mws-form-row">
                           <label class="mws-form-label">食品图片<span class="required">*</span></label>
                           <div class="mws-form-item" id="store-logo">
                              <div class="oder-logo">
                                 <img src="<%= data.pic==='default.webp'? '/images/default.webp' : host + data.pic %>" width="200px" id="file-data"><br>
                              </div>
                              <input type="hidden" name="pic" value="<%= data.pic %>">
                           </div>
                        </div>
                        <div class="mws-form-row">
                           <label class="mws-form-label">上传图片<span class="required">*</span></label>
                           <div class="mws-form-item">
                              <input type="file" name="newpic" multiple id="file-push">
                           </div>
                        </div>
                        <div class="mws-form-row">
                           <label class="mws-form-label">订单数量<span class="required">*</span></label>
                           <div class="mws-form-item">
                              <input type="text" name="count" class="required large" value="<%= data.count %>">
                           </div>
                        </div>
                     </fieldset>
                     <input type="hidden" name="id" value="<%= data.id %>">
                     <div class="mws-button-row">
                        <button type="submit" class="btn btn-primary">提交</button>
                        <button type="reset" class="btn">重置</button>
                     </div>
                  </form>
               </div>
            </div>
         </div>

         <!-- 中框底部区域 -->
         <%- include('../commont/Footer'); %>
      </div>
   </div>

   <!-- 公共 js 文件 -->
   <%- include('../commont/Script'); %>
   <script src="/js/Store/storeadd.js"></script>
</body>

</html>